var wallData = {
    col: 5,
    row: 192
}
var mario = document.getElementById("marioBox")
function wall() {
    var wallBox = document.getElementById("wallBox");
    var wallInner = "";
    for (let j = 0; j < wallData.row; j++) {
        wallInner = wallInner + '<div class="wall pixel"></div>';
    }
    for (let i = 0; i < wallData.col; i++) {
        let wallDom = document.createElement('div');
        wallDom.className = 'brickCol clearfix';
        wallDom.innerHTML = wallInner;
        wallBox.appendChild(wallDom)
    }
}
wall();
function MarioUp(){
    mario.className="marioBox MarioJump"
    setTimeout(function(){
        mario.className="marioBox"
    },1000)
}
function MarioRight(){
    let right = mario.style.left;
    console.log(right)
    let left=right.replace("px","")
    let number=Number(left)+10;
    console.log(number)
    mario.style.left=number+'px';
}
function MarioDown(){
    mario.style.bottom = '0'
}